
class TransXmlError(Exception):
    def __init__(self, tag = "xml", value = "Unknown"):
	self.tag   = tag
	self.value = value

    def toString(self):
	return ("XMLERROR: at tag %s, Error Type: %s" % self.tag, self.value)
    

def only_raise():
    raise TransXmlError("Puto", "loco")
    

try:
    only_raise()
except TransXmlError as error:
    print error.toString()
    
    



